package darknet.application.filesharing.spec;

import java.io.Serializable;

/**
 * A chunk is a part of a file.
 * It has a hash, a number and a size.
 * 
 * @author yoyo
 */
public interface Chunk extends Serializable  {

    /**
     * @return The order number of the chunk.
     */
    Integer getNumber();

    /**
     * @return The hash tag of the chunk.
     */
    Hash getHash();

    /**
     * @return The size of the chunk.
     */
    Integer getSize();
}
